package com.cib.yym.homepage.rpc.service.impl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


import com.cib.yym.homepage.bean.WeiboPost;
import com.cib.yym.homepage.rpc.service.WebAppService;
import com.yym.sina.weibo.WeiboService;
import com.yym.sina.weibo.WeiboServiceImpl;

public class WebAppServiceImpl implements WebAppService{
	
	private WeiboService ws = new WeiboServiceImpl();
	
	public List<WeiboPost> getRecentWeiboPosts() {						
		return ws.getRecentUserPost(WeiboServiceImpl.myUid);				
	}

	public WeiboPost getWeiboPost(String id)
	{
		System.out.println("getWeiboPost id="+id);
		WeiboPost p1 = new WeiboPost();
		p1.setOAuthUID("yangyiming@gmail.com");
		p1.setUrl("http://weibo.com/aaaa");
		p1.setContent("这个是一个测试");
		
		return p1;
	}
	

}
